package com.lzxzjy.mapper;

import com.lzxzjy.pojo.Announcement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnnouncementMapper {
    Integer insertAnnouncement(Announcement announcement);

    Integer deleteByAnnouncementIds(@Param("announcementIds") int[] announcementIds);

    Integer deleteByAnnouncementId(int announcementId);

    Integer updateByAnnouncementId(Announcement announcement);

    List<Announcement> selectAnnouncementByPageAndTerms(@Param("announcement") Announcement announcement, @Param("announcementBegin") int announcementBegin, @Param("announcementSize") int announcementSize);

    Integer selectAnnouncementTotalCountByTerms(Announcement announcement);

    List<Announcement> selectAllAnnouncement();
}
